package com.day03;

import java.util.Random;

public class Randomt {
    public static void main(String[] args) {
        useRandomnudes(() -> {
            Random s = new Random();
            int num = s.nextInt(10) + 1;
            return num;
        });
    }

    public static void useRandomnudes(Randomnudes sr) {
        int rean = sr.getnudes();
        System.out.println(rean);
    }

    interface Randomnudes {
        int getnudes();
    }
}
